package liuch.learnjdbc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import liuch.learnjdbc.service.IOrderService;

/**
 * @author: liuchenhui
 * @create: 2019-08-01 12:20
 **/
@Service
public class OrderServiceImpl implements IOrderService {

    @Autowired
    JdbcTemplate jdbcTemplate;

    @Override
//    @Transactional
    public void addOrder() {
        jdbcTemplate.execute("insert into seata.order_tbl values (null, '1', '123', 1, 12.00)");
    }
}
